package ods_map

import (
	"github.com/gin-gonic/gin"
	"server/middleware"
)

type DbFldMapRouter struct {
}


func (s *DbFldMapRouter) InitDbFldMapRouter(Router *gin.RouterGroup) {
	dbFldMapRouter := Router.Group("dbFldMap").Use(middleware.OperationRecord())
	dbFldMapRouterWithoutRecord := Router.Group("dbFldMap")
	var dbFldMapApi = DbFldMapApi{}
	{
		dbFldMapRouter.POST("createDbFldMap", dbFldMapApi.CreateDbFldMap)
		dbFldMapRouter.DELETE("deleteDbFldMap", dbFldMapApi.DeleteDbFldMap)
		dbFldMapRouter.DELETE("deleteDbFldMapByIds", dbFldMapApi.DeleteDbFldMapByIds)
		dbFldMapRouter.PUT("updateDbFldMap", dbFldMapApi.UpdateDbFldMap)
	}
	{
		dbFldMapRouterWithoutRecord.GET("findDbFldMap", dbFldMapApi.FindDbFldMap)
		dbFldMapRouterWithoutRecord.GET("getAllDbFldMaps", dbFldMapApi.GetAllDbFldMaps)
		dbFldMapRouterWithoutRecord.GET("getDbFldMapList", dbFldMapApi.GetDbFldMapList)
		dbFldMapRouterWithoutRecord.POST("getDbFldMap", dbFldMapApi.GetDbFldMap)
		dbFldMapRouterWithoutRecord.GET("initDbFldMap", dbFldMapApi.InitDbFldMap)
	}
}
